<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>Ingok Technology -房產管理系統</title>
	<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
	<!-- stylesheets -->
	<link href="/css/login.css" rel="stylesheet" type="text/css" />
	<!-- scripts (jquery) -->
	<script type="text/javascript" src="/public/js/jquery-1.4.2.min.js"></script>		
	<script type="text/javascript">
		$(document).ready(function () {
			$("input.text").focus(function () {
				if (this.value == this.defaultValue) {
					this.value = "";
				}
				else {
					this.select();
				}
			});

			$("input.text").blur(function () {
				if ($.trim(this.value) == "") {
					this.value = (this.defaultValue ? this.defaultValue : "");
				}
			});
			
		});
		function checkform(){
			if($("#uname").val()==""){
				alert("請填寫帳號");
				return false;
			}else if($("#pwd").val()==""){
				alert("請填寫密碼");
				return false;
			}else if($("#vcode").val()==""){
				//alert("請填寫驗證碼");
				//return false;
			}else{
				return true;
			}
		}
	</script>
</head>

<body class="login">
<div class="login-box">
  <div class="login-border">
    <div class="login-style">
      <div class="login-header">
        <div class="logo clear"><img class="picture" alt="" src="/images/logo.png"> <span class="textlogo"> <span class="title"><img src="/images/title.png" border="0" /></span><span class="text"><img src="/images/title_eng.png"  border="0"/></span> </span> </div>
      </div>
      <form method="post" action="/login/login_submit">
        <div class="login-inside">
          <div class="login-data">
            <div class="row clear">
              <label for="user">帳號：</label>
			  <input type="text" value="帳號" class="text" size="25" name="uname" id="uname">
            </div>
            <div class="row clear">
              <label for="password">密碼：</label>
			  <input type="password" value="密碼" class="text" size="25" name="pwd" id="pwd">
            </div>
            <div class="row clear">
              <label for="verification">驗證碼：</label>
			  <input type="text" size="15" name="vcode" id="vcode" class="text_ver">
              <div class="ver_img"><?=my_captcha()?></div>
            </div>
          </div>
          <input type="submit"  class="button" id="login_btn" value="登錄" onclick="return checkform();">
        </div>
        <div class="login-footer clear"> </div>
      </form>
    </div>
  </div>
</div>
<div class="login-links">
  <p>&copy;Copyright&copy;2010-2020 Ingok Technology  . All Rights Reserved.</p>
</div>
</body>
</html>